home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10950 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: maze.dpo.uab.edu!usenet
  2. From: Jian Shen <shen@cis.uab.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Help: Porting a Borland C++4.0 program to GNU g++ progarm running on Unix
  5. Date: 11 Mar 1996 21:54:42 GMT
  6. Organization: University of Alabama at Birmingham
  7. Message-ID: <4i27f2$sdk@maze.dpo.uab.edu>
  8. NNTP-Posting-Host: tty33.maze.ppp.uab.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  13.  
  14. Dear Friends,
  15.    I am trying to porting a small object-oriented database management system written in C++
  16. by Mr. Al Steve in his book "C++ DATABASE DEVELOPMENT 2/E" to a UNIX workstation using GNU's
  17. G++(version 2.7.1). But there are several imcompatibilities I need you guys help me out.
  18.  
  19.    1. Does the GNU g++ compiler support RTTI(run time type identification)? I have some code
  20.       like:
  21.         const Type_info *relatedclass;     ----- a type declaration
  22.         return typeid(T) == typeid(ObjAddress);     -----  function call made for a comparison
  23.         return reinterpret_cast<const ObjAddr*> (&ky); ----- a explicite type casting
  24.  
  25.    2. How I can use the string object in G++, there is a header file <cstring.h> in Borland C++
  26.       but I didn't find one in G++, there is CString file in the include directory, I don't
  27.       what that is for. I thing the string object is supported in G++, I just don't know which
  28.       header should I include and which library should I link.
  29.  
  30.    3. Both c++ compilers support Exception Handling, but when I test some code on G++, it can't
  31.       be compiled correctly. So where is imcompatibility? or maybe just I didn't use the G++
  32.       correctly.
  33.  
  34.    If someone has already done the same job before, it would be wonderful if he can told me 
  35. what he did to make it work. I have this hope because the author claimed that his program has
  36. been used by thouthands of readers on varity of platforms. 
  37.    Anyone who familiar with both above C++ compilers, and know how to solve those problems, 
  38. please E-mail me at:
  39.                       shen@cis.uab.edu
  40.  
  41.     Your help is greatly appreciated! Thanks a lot!
  42.  
  43. Jian Shen
  44. University of Alabama at Birmingham
  45. shen@cis.uab.edu
  46.  
  47.  
  48.